package com.guigu.pd.work.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.guigu.pd.serviceapi.pojo.OrderCargoEntity;
import com.guigu.pd.serviceapi.pojo.OrderEntity;
import com.guigu.pd.serviceapi.pojo.TaskPickupDispatchEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 运单表
 * 
 * @author deyran
 * @email deyran@gmail.com
 * @date 2022-07-19 19:31:34
 */
@Data
@TableName("pd_transport_order")
@AllArgsConstructor
@NoArgsConstructor
public class TransportOrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private String id;
	/**
	 * 订单ID
	 */
	private String orderId;
	/**
	 * 运单状态(1.新建 2.已装车 3.到达 4.到达终端网点 5.已签收 6.拒收)
	 */
	private Integer status;
	/**
	 * 调度状态(1.待调度2.未匹配线路3.已调度)
	 */
	private Integer schedulingStatus;
	/**
	 * 创建时间
	 */
	private Date createTime;

	@TableField(exist = false)
	private OrderEntity orderinfo;

	@TableField(exist = false)
	private List<OrderCargoEntity> ordercargo;

	@TableField(exist = false)
	private TaskPickupDispatchEntity taskpt;

	/**
	 *	订单下单时间
	 */
	@TableField(exist = false)
	private Date ordercreateTime;

	/**
	 * 	收件人详细地址
	 */
	@TableField(exist = false)
	private String receiveraddress;

	//收件人姓名
	@TableField(exist = false)
	private String receivername;

	//收件人电话
	@TableField(exist = false)
	private String receiverphone;

	//发件人详细地址

	@TableField(exist = false)
	private String senderaddress;

	//发件人姓名

	@TableField(exist = false)
	private String sendername;

	//发件人电话

	@TableField(exist = false)
	private String senderphone;

	//预计到达时间

	@TableField(exist = false)
	private Date estimatedArrivalTime;

	/**
	 * 货品数量
	 */
	@TableField(exist = false)
		private Integer quantity;

}
